﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Routing;
using System.Web;
using System.Diagnostics;

namespace KMA.Lib {
    public class KMAHandler : IHttpHandler, IRouteHandler {
        public bool IsReusable {
            get { return true; }
        }

        public void ProcessRequest(HttpContext context) {
            Debug.WriteLine("Someone is still alive!", "KMAHandler");
            var response = context.Response;
            response.ContentType = "text/plain";
            response.Write(DateTime.Now.ToString());
            response.Flush();
        }

        public IHttpHandler GetHttpHandler(RequestContext requestContext) {
            return this;
        }
    }
}
